﻿using NUnit.Framework;
using System.Collections.Generic;
namespace ThunkC_.Collections_
{
    /// <summary>
    /// IEnumeratorFixture
    /// </summary>
    [TestFixture]
    public class IEnumeratorFixture
    {
        [Test]
        public void Current_TwoElementList_NotNull()
        {
            var list = new List<int>(new int[] { 0, 1 });
            var enumerator = list.GetEnumerator();
            enumerator.MoveNext();
            var enumerator2 = (IEnumerator<int>)enumerator;
            Assert.IsNotNull(enumerator2.Current);
        }
    }
}
